package cn.com.twoke.easyproject.modules.system.domain;

import cn.com.twoke.easyproject.handler.mybatisplus.fill.BaseDOFillable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * (SysRole)表实体类
 *
 * @author TwoKe
 * @since 2025-06-08 02:49:25
 */
@Data
@Schema(description = "SysRole")
@TableName("sys_role")
public class SysRole implements BaseDOFillable {
    /**
     * 主键
     */
    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 角色代码
     */
    @Schema(description = "角色代码")
    @TableField(value = "role_code")
    private String roleCode;
    /**
     * 描述
     */
    @Schema(description = "描述")
    @TableField(value = "description")
    private String description;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    /**
     * 创建用户
     */
    @Schema(description = "创建用户")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;
    /**
     * 更新用户
     */
    @Schema(description = "更新用户")
    @TableField(value = "update_user", fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
    /**
     * 是否删除
     */
    @Schema(description = "是否删除")
    @TableField(value = "is_deleted", fill = FieldFill.INSERT)
    @TableLogic
    private Integer isDeleted;


}

